<link rel="stylesheet" href="/Content/FileUpload/css/jquery.fileupload.css" />
<script language="JavaScript" type="text/javascript" src="/Content/My97DatePicker/WdatePicker.js"></script>
<link rel="stylesheet" href="/Content/kindeditor/themes/default/default.css" />
<script charset="utf-8" src="/Content/kindeditor/kindeditor-min.js"></script>
<script charset="utf-8" src="/Content/kindeditor/lang/zh-CN.js"></script>
<style>
#allmap {width: 100%;height: 100%;overflow: hidden;margin:0;font-family:"微软雅黑";}

</style>
<div class="col-lg-12">
                    <div class="ibox float-e-margins">
                        <div class="ibox-title">
                            <h5>
							<if condition="$info.id == 0">添加单位
    <else />修改单位
</if>
							</h5>
                            
                        </div>
                        <div class="ibox-content">
                            <form  action="/index.php/Home/Index/adddanwei" id="myform" method="post" class="form-horizontal"  enctype="multipart/form-data">
                               
								
								<div class="form-group"><label class="col-sm-2 control-label">单位名称</label>
                                    <div class="col-sm-10">
									<input type="text"  class="form-control"  name="name" value="{$info.name}" />
									</div>
                                </div>
									<div class="form-group"><label class="col-sm-2 control-label">单位代码</label>
                                    <div class="col-sm-10">
									<input type="text" class="form-control"   name="code" value="{$info.code}" />
									</div>
                                </div>
								<div class="form-group"><label class="col-sm-2 control-label">分组</label>
                                    <div class="col-sm-10">
									<select class="form-control m-b" name="zuid">
									<volist name="types" id="vo">
									<if condition="($vo.id eq $obj.zuid)"> 
										<option value="{$vo['id']}" selected="selected">{$vo['zuname']}</option>
									<else /> 
										<option value="{$vo['id']}">{$vo['zuname']}</option>
									</if>
									
														
												</volist>
												</select>
									</div>
                                </div>
								<div class="form-group"><label class="col-sm-2 control-label">状态</label>
                                    <div class="col-sm-10">
									<select class="form-control m-b" name="state">
									
										<option value="1" selected="selected">正常</option>
									<option value="0" >禁止</option>
									
														
												
												</select>
									</div>
                                </div>
								
								
                                <div class="form-group">
                                    <div class="col-sm-4 col-sm-offset-2">
                                        <button class="btn btn-primary" type="submit" >保存</button>
                                    </div>
                                </div>
								<input type="hidden" value="{$info.id}" name="id" />
							
                            </form>
                        </div>
                    </div>
                </div>
	
